<style>
	#box {
		width: 30px;
		height: 30px;
		background-color: #900;
		border: 2px solid #fff;
		padding: 2px;
		margin: 2px;
	}
	#container {
		width: 250px;
		height: 250px;
		border: 4px solid black;
		background: #ccc;
		padding: 4px;
		margin: 4px;
	}
</style>

<div style="position: relative; padding: 2px;">
	<div id="container">

		<div id="box"></div>

	</div>
</div>